#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int 
	scanf("%d", &n);
	b = n / 12 * 4 + 2;
	printf("%d\n", b);
	return 0;
}
